package com.albaba.designpattern.chain_of_responsibility.text_001;

/**
 * @author zx
 * @version 1.0
 * @description 抽象处理者
 * @date 2025/2/24 21:22
 */
public abstract class Handler {

    // 后继处理者的引用
    protected Handler successor;

    public void setSuccessor(Handler successor) {
        this.successor = successor;
    }

    public abstract void handle(RequestData requestData);


}
